package dashboard.service;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import dashboard.domain.Member;
import dashboard.repository.MemberDao;

public class MemberManager implements MemberManagerService {

	private MemberDao memberDao;
	
	private Log log = LogFactory.getLog(getClass());
	
	public void setMemberDao(MemberDao memberDao) {
		this.memberDao = memberDao;
	}

	@Override
	public List<Member> listAllMembers() throws Exception {
		// TODO Auto-generated method stub
		return memberDao.listAllMembers();
	}

	@Override
	public void insert(String name) throws Exception {
		Member member = new Member();
		member.setName(name);
		memberDao.insert(member);		
	}

}
